﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OnlineNewTask.aspx.cs" Inherits="office_OnlineNewTask" %>

<%@ Register src="../UserControls/GeneralSelect.ascx" tagname="GeneralSelect" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>在线申报业务受理</title>
    <link rel="stylesheet" id="skinCss" type="text/css" href="../css/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../css/icon.css" />
    <link rel="stylesheet" type="text/css" href="../css/page.css" />
    <script type="text/javascript" src="../ScriptFile/jquery.js"></script>
    <script type="text/javascript" src="../ScriptFile/jquery.easyui.min.js"></script>
    <script src="../ScriptFile/JqueryPostService.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
    //打开处理页面 addby zhongjian 20100625
    function HandleWorkItem(WorkItem, iid, step) {
        var strURL = "TaskProcess.aspx?ItemId=" + WorkItem + "&iid=" + iid + "&step=" + step;
        window.open(strURL, 'handler', "height=" + (screen.availHeight - 30) + " , width=" + screen.availWidth + ", top=0, left=0,toolbar=no, menubar=no, scrollbars=no, location=n o, status=no");
    }
    
    //获取岗位信息
    function btnOkClick() {
        var wid = $('#ddlFlows').val();
        var wname = $('#ddlFlows option:selected').text();

        var dtytClientId = '<%=ddlDtyt.ClientID%>';
        var dtyt = $('#' + dtytClientId + ' option:selected').text(); //$('#ddlDtyt').combobox('getValues');
        var strSqr = '<%=Request["sqr"]%>';
        var strIID = '<%=Request["iid"]%>';
        var strUserid = '<%=UserId%>';
        var strSbUserid = '<%=Request["sbUserid"]%>';
        var nNw = '<%=Request["is_nw"]%>';

        if (nNw == null || typeof (nNw) == "undefined" || nNw == "")//判断是否是内网受理
        {
            nNw = "0";
        }

        if (strSqr != "") {
            WebService('../WebService/JqueryService.asmx/BuildMapSerial', ShowResult, '{"strWid":"' + wid + '","strWorkFlowName":"' + wname + '","strUserName":"' + strSqr + '","strAppid":"' + strIID + '","strUserId":"' + strUserid + '","strIsNw":"' + nNw + '","strDtyt":"' + dtyt + '","strSbUserid":"' + strSbUserid + '"}');
        }
        else {
            alert("申请单位不能为空");
        }
    }

    //针对结果做出响应
    function ShowResult(result) {
        if (result != null) {
            if (result != "") {//成功
                //打开处理页面,并跳转
                HandleWorkItem(result + '001', result, '窗口受理');
                window.location.href = '../<%=ConfigurationManager.AppSettings["dbsxUrl"]%>';
            }
        }
    }
</script>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center; margin: 0px auto; width: 60%; height: auto;">
        <div class="box_top_bar">
            <div class="box_top_left">
                <div class="box_top_right">
                    <div class="box_top_text">
                        办件类型</div>
                </div>
            </div>
        </div>
        <table style="text-align: center; width: 100%" align="center" class="tab">
            <tr>
                <td style="text-align: right;">
                    选择业务类型：
                </td>
                <td style="text-align: left;">
                    <asp:DropDownList ID="ddlFlows" runat="server" Style="width: 200px;">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="text-align: right;">
                    图件用途：
                </td>
                <td style="text-align: left;">
                   <%-- <select class="easyui-combobox" data-options="multiple:false" id="ddlDtyt" style="width: 200px;">--%>

                   <uc2:GeneralSelect ID="ddlDtyt" Name="图件类别" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="button" class="NewButton" value="确定" onclick="btnOkClick()" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
